package com.shuyun.java8;

import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: shuai.chen@shuyun.com
 * @date: 2021/6/22 10:35 上午
 */
public class FunctionInterfaceTest {

    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        list.add(29);
        list.add(20);
        list.add(19);
        List<Integer> filter = Filter.filter(list, num -> (Integer)num > 25);
        System.out.println(filter);

        List<Integer> filter2 = Filter.filter2(list, num -> (Integer)num > 19);
        System.out.println(filter2);
    }

}
